<?php
class CompFinanc extends AppModel
{
	var $name='CompFinanc';
	var $primaryKey = 'id'; 
	var $belongsTo = array(
        'type_id' => array(
            'className'    => 'Codevalue',
            'foreignKey'    => 'type_id'
        )
    );
	var $hasMany = array (
    		'Attachment' => array (
			'conditions' => array("Attachment.is_deleted='0'"),
			'className' => 'Attachment',
			'foreignKey' => 'pid'
			)
	);
}
?>